@import "modules/color";

page, view, scroll-view, swiper, movable-area, cover-view, text, icon, rich-text,
progress, button, checkbox-group, checkbox, form, input, label, picker,
picker-view, radio-group, slider, switch, textarea, navigator, audio, image,
video, live-player, live-pusher, open-data, web-view {
    box-sizing: border-box;
}

page {
    font-size: 30px;
    background-color: #f3f3f3;
    color: #000;
}

.hover-class-co {
    background: #f7f7f7;
}

navigator {
    display: inline-block;
    color: $link-color;

    &:active, &:link {
        background: transparent;
    }

    &.navigator-hover {
        background: none;
        color: opacify($link-color, .8);
    }
}

.cur {
    cursor: pointer;
}

image {
    max-width: 100%;
    vertical-align: middle;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.flex {
    display: flex !important;
}

.al-c {
    align-items: center;
}

.al-fs {
    align-items: flex-start;
}

.al-fe {
    align-items: flex-end;
}

.jc-c {
    justify-content: center;
}

.jc-sb {
    justify-content: space-between;
}

.jc-sa {
    justify-content: space-around;
}

.jc-fe {
    justify-content: flex-end;
}

.jc-fs {
    justify-content: flex-start;
}

.list-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.tab {
    background-color: #fff;
    height: 90px;
    display: flex;
    border-bottom: 1px solid #e5e5e5;

    .item {
        position: relative;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        &:after {
            position: absolute;
            content: '|';
            right: 0;
            top: 50%;
            color: #e5e5e5;
            font-weight: 400;
            transform: translateY(-50%);
        }

        text {
            height: 100%;
            border: 5px solid transparent;
            border-left: none;
            border-right: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        &:last-of-type {
            &:after {
                display: none;
            }
        }

        &.active {
            color: $main-color;

            text {
                position: relative;
                border-bottom-color: $main-color;

                &:after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    border: 10px solid transparent;
                    border-bottom-color: $main-color;
                }
            }
        }
    }
}

.link-list {
    background-color: #fff;

    .item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 90px;
        padding: 0 25px;
        color: #555;
        border-bottom: 1px solid #f3f3f3;

        .r {
            background: url("") no-repeat right center;
            background-size: 40px auto;
            width: 30px;
            height: 100%;
        }

        .l {
            height: 100%;
            display: flex;
            align-items: center;
        }

        .icon {
            width: 60px;
            height: 90px;
            display: flex;
            align-items: center;

            image {
                display: block;
            }
        }
    }
}

.form-wrap {
    font-size: 30px;

    .form-item {
        display: flex;
        background-color: #fff;
        border-bottom: .5PX solid #eee;

        .label {
            padding: 20px;
            font-size: 30px;

            &.j {
                text-align: justify;
                text-align-last: justify;
            }
        }


        .content {
            flex: 1;
            padding-left: 20px;
            text-align: right;
            display: block;

            &.text {
                padding: 20px;
            }


            &.center {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                padding-right: 20px;
            }

            input {
                height: 100%;
                padding-right: 20px;
            }

            textarea {
                padding: 6px 20px;
                text-align: left;
                width: 100%;
                height: 200px;
                line-height: 1.4;
            }
        }

        picker {
            display: flex;

            view {
                flex: 1;
                width: 100%;
                height: 100%;
                display: flex;
                justify-content: flex-end;
                padding: 20px;
            }
        }
    }
}
